package dth.entity;
import java.sql.Date;

import javax.persistence.*;
@Entity
@Table(name="payment_history")
public class PaymentHistory {
	@Id
	@Column(columnDefinition="int",name="payment_id")
	private int id;
	@Column(columnDefinition="double",name="payment_amount")
	private double price;
	@Transient
	private int fkPaymentUser;
	@Column(columnDefinition="datetime",name="date_insert")
	private Date dateInsert;
	@ManyToOne
	@JoinColumn(name = "fk_payment_user")
	private User ownUserPayment;
	
	public User getOwnUserPayment() {
		return ownUserPayment;
	}
	public void setOwnUserPayment(User ownUserPayment) {
		this.ownUserPayment = ownUserPayment;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	public int getFkPaymentUser() {
		return fkPaymentUser;
	}
	public void setFkPaymentUser(int fkPaymentUser) {
		this.fkPaymentUser = fkPaymentUser;
	}
	public Date getDateInsert() {
		return dateInsert;
	}
	public void setDateInsert(Date dateInsert) {
		this.dateInsert = dateInsert;
	}
	
	
}
